<template>
  <uv-popup ref="popup" bg-color="transparent" round="16rpx">
    <view class="box p-t-40 p-x-36 p-b-36">
      <view class="text-center text-34 text-840202">设计库数量已达上限</view>
      <view class="text-center text-26 text-666 m-t-50">是否先删除其他方案再进行设计</view>
      <view class="flex justify-center m-t-64">
        <dy-button class="m-r-24" width="242rpx" btn_bg="#E9E9E9" f_color="#000000"
          @click="popup.close()">取消</dy-button>
        <dy-button btn_bg="#840202" width="242rpx" f_color="#FFF" @click="sure()">确定</dy-button>
      </view>
    </view>
  </uv-popup>
</template>
<script setup>
import { ref } from 'vue';
import { onReachBottom, onShow, onReady, onLoad } from '@dcloudio/uni-app';
const popup = ref(null);
const props = defineProps({
  isShow: {
    type: Boolean,
    default: false
  }
}); 
const open = () => {
  popup.value.open();
};

const sure = () => {
  popup.value.close();
  if (!props.isShow) {
    uni.navigateTo({
      url: '/pagesA/pages/myDesign/myDesign'
    });
  }
}
// 暴露方法给父组件
defineExpose({
  open
});
</script>

<style scoped>
.box {
  width: 580rpx;
  height: 360rpx;
  border-radius: 16rpx;
  background-color: #fff;
}
</style>
